/** When your routing table is too long, you can split it into small modules **/

import Layout from '../../layout'

const approvalsRouter = {
  path: '/approvals',
  component: Layout,
  redirect: '/approvals/manage',
  name: 'Approvals',
  alwaysShow: true,
  meta: {
    title: '维修计划',
    icon: 'spgl',
    roles: ['superSysOpsAdmin']
  },
  children: [
    {
      path: 'initiateProject',
      component: () => import('@/pages/index/views/approvalsMange/InitiateProject.vue'),
      name: 'InitiateProject',
      meta: { title: '项目发起', roles: ['superSysOpsAdmin'], noCache: true }
    },
    {
      path: 'projectAcceptance',
      component: () => import('@/pages/index/views/approvalsMange/ProjectAcceptance.vue'),
      name: 'ProjectAcceptance',
      meta: { title: '项目验收', roles: ['superSysOpsAdmin'], noCache: true }
    }
  ]
}
export default approvalsRouter
